﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Pictures_Default" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder" Runat="Server">
     <asp:LinkButton ID="lnkNewCategory" runat="server" CausesValidation="False" PostBackUrl="~/Pictures/Categories.aspx">Създаване на нова Категория</asp:LinkButton><br />
     <asp:LinkButton ID="lnkUploadPhoto" runat="server" PostBackUrl="~/Pictures/UploadPictures.aspx" CausesValidation="False">Качване на снимка</asp:LinkButton><br />
                    
    <br />
    <asp:DataList ID="dtlCategory" runat="server" DataKeyField="CategoryID" 
         DataSourceID="sdsCategories">
             <ItemTemplate>
                <asp:HyperLink ID="HyperLink1" runat="server" 
                Text='<%# Eval("Title") %>' NavigateUrl='<%# Eval("CategoryID", "Main.aspx?Category={0}") %>' ToolTip='<%# Eval("Description") %>'></asp:HyperLink><br />
            </ItemTemplate>
    </asp:DataList>
    
    <asp:SqlDataSource ID="sdsCategories" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ClinicConnectionString %>" 
        SelectCommand="SELECT CategoryID, Title, Description FROM Category ORDER BY Title">
    </asp:SqlDataSource>
    </asp:Content>

